package com.ruoyi.drugSystem.service.impl;

import com.ruoyi.drugSystem.domain.SysSupplier;
import com.ruoyi.drugSystem.mapper.SysSupplierMapper;
import com.ruoyi.drugSystem.service.ISysSupplierService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author ruoyi
 * @date 2023-03-07
 */
@Service
public class SysSupplierServiceImpl implements ISysSupplierService
{
    @Autowired
    private SysSupplierMapper sysSupplierMapper;

    /**
     * 查询【请填写功能名称】
     *
     * @param supplierId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public SysSupplier selectSysSupplierBySupplierId(Long supplierId)
    {
        return sysSupplierMapper.selectSysSupplierBySupplierId(supplierId);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param sysSupplier 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<SysSupplier> selectSysSupplierList(SysSupplier sysSupplier)
    {
        return sysSupplierMapper.selectSysSupplierList(sysSupplier);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param sysSupplier 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertSysSupplier(SysSupplier sysSupplier)
    {
        return sysSupplierMapper.insertSysSupplier(sysSupplier);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param sysSupplier 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateSysSupplier(SysSupplier sysSupplier)
    {
        return sysSupplierMapper.updateSysSupplier(sysSupplier);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param supplierIds 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteSysSupplierBySupplierIds(Long[] supplierIds)
    {
        return sysSupplierMapper.deleteSysSupplierBySupplierIds(supplierIds);
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param supplierId 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteSysSupplierBySupplierId(Long supplierId)
    {
        return sysSupplierMapper.deleteSysSupplierBySupplierId(supplierId);
    }
}